package com.ihm.projetihm_v1.activity.photo.listener;

import android.view.View;
import android.view.View.OnClickListener;

import com.ihm.projetihm_v1.activity.photo.PhotoActivity;
import com.ihm.projetihm_v1.nf.LinkedPhoto;


public class ArrowListener
		implements OnClickListener
{
	private PhotoActivity photoActivity;
	private LinkedPhoto.RELATION_TYPE mRelationType;
	
    public ArrowListener(PhotoActivity photoActivity, LinkedPhoto.RELATION_TYPE relationType)
    {
    	this.photoActivity = photoActivity;
    	this.mRelationType = relationType;
    }
    
 	@Override
	public void onClick(View v) {
		/* actualize the photoActivity with the photo 
		 * that's corresponding to the arrow
		 */
 		this.photoActivity.goTo(this.mRelationType);
	};
}
